import { RequestAxios } from "@/utils"

export const getUserInfoAPI = () => {
    return RequestAxios.get<ProfileInfo>("/member/profile")
}

// 更新用户头像
export const updateUserAvatarAPI = (data: FormData) => {
    return RequestAxios.uploadFile<null>("/member/profile/avatar", data)
}

// 更新用户资料
export const updateUserProfileAPI = (data: ProfileInfo) => {
    return RequestAxios.put<null>("/member/profile", data)
}